--TEST--
Check for jsonschema  number validate
--SKIPIF--

<?php if (!extension_loaded("jsonschema"))
    print "skip"; ?>
--FILE--
<?php
/* double */
$value = 123.321;
$jsonSchema = new JsonSchema(json_encode($value));

echo assert(!$jsonSchema->validate('{"type":"number","default":0,"minimum":0,"maximum":120,"exclusiveMinimum":0,"exclusiveMaximum":2147483647}')), PHP_EOL;
echo count($jsonSchema->getErrors()), PHP_EOL;

/* integer */
$value = 123;
$jsonSchema = new JsonSchema(json_encode($value));

echo assert(!$jsonSchema->validate('{"type":"integer","default":0,"minimum":321,"maximum":2147483647,"exclusiveMinimum":0,"exclusiveMaximum":2147483647}')), PHP_EOL;
echo count($jsonSchema->getErrors()), PHP_EOL;
?>
--EXPECT--
1
1
1
1